/*
 * Copyright (c) 2018-2999 北京小象智慧信息科技有限公司 All rights reserved.
 *
 * https://www.xiaoxiangai.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yami.shop.bean.app.dto.OrderItemDto;
import com.yami.shop.bean.model.OrderItem;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

public interface OrderItemMapper extends BaseMapper<OrderItem> {

	List<OrderItem> listByOrderNumber(@Param("orderNumber") String orderNumber);


	void insertBatch(List<OrderItem> orderItems);

//	List<OrderItem> getPayByOrderNumber(@Param("orderNumber") String orderNumber);

	OrderItem getOrderItemByParam(@Param("orderNumber") String orderNumber,@Param("prodId") String prodId);

	int deleteOrderItemByParam(@Param("orderNumber") String orderNumber,@Param("prodId") String prodId);

    List<OrderItem>  getSumOrderByOrderItemId(@Param("orderItemIds")List<Long> orderItemIds,@Param("startPageNumber")int startPageNumber,@Param("pageNumber") int pageNumber) ;
}
